import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_area",{schema:"fastadmin" } )
@Index("pid",["pid",])
export class fa_area {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("int",{ 
        nullable:true,
        name:"pid"
        })
    pid:number | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"shortname"
        })
    shortname:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"name"
        })
    name:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        name:"mergename"
        })
    mergename:string | null;
        

    @Column("tinyint",{ 
        nullable:true,
        name:"level"
        })
    level:number | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"pinyin"
        })
    pinyin:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"code"
        })
    code:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"zip"
        })
    zip:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:50,
        name:"first"
        })
    first:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"lng"
        })
    lng:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"lat"
        })
    lat:string | null;
        
}
